<?php


namespace catchAdmin\visitPlan\search;


trait VisitPlanSearch
{
    public function searchCreatorNameAttr($query, $value, $data)
    {

        return $query->where('creator_name', 'regex', $value);
    }

    public function searchVisitNameAttr($query, $value, $data)
    {

        return $query->where('visit_name', 'like', $value);
    }

    public function searchStatusAttr($query, $value, $data)
    {
        return $query->where('status', '=', (int)$value);
    }


}